package com.atguigu.gmall.web.controller;


import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletResponse;

/**
 * 登录页
 */
@Controller
public class LoginController {

    //login.html
    @GetMapping("/login.html")
    public String loginPage(@RequestParam("originUrl") String originUrl,
                            Model model,HttpServletResponse response){

        model.addAttribute("originUrl",originUrl);
        return "login";//登录页  classpath:/templates/login.html
    }
}
